package com.bee.study.repository;

import com.bee.study.entity.Article;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

/**
 * @version 1.0.0
 * @Author yong.Mr
 * @data 2019-8-9
 */
public interface ArticleRepository extends ElasticsearchRepository<Article,Long> {

    // ES的自动实现
    List<Article> findArticleByTitle(String title);

    // ES自动实现，相关实现类，
    Article findArticleByContentAndTitle(String content, String title);
}
